package com.gateway.video.rtsp.server;

import com.gateway.video.rtsp.server.handler.support.RtspHttpMethod;
import io.netty.handler.codec.http.DefaultFullHttpResponse;
import io.netty.handler.codec.http.FullHttpResponse;
import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.handler.codec.rtsp.RtspVersions;

import java.util.Arrays;
import java.util.stream.Collectors;

public class VideoServerConstants {
    public static final FullHttpResponse ERROR_RESPONSE = new DefaultFullHttpResponse(RtspVersions.RTSP_1_0, HttpResponseStatus.BAD_GATEWAY);
    public static final String PUBLIC_METHODS = Arrays.stream(RtspHttpMethod.values()).map(item -> item.name()).collect(Collectors.joining(","));

    public static final String CSEQ = "Cseq";
    public static final String PUBLIC = "public";
    public static final String VIDEO_VERSION = "Video/1.0.0";
    public static final String TRANSPORT = "Transport";
    public static final String SESSION = "Session";
}
